package com.yswl.pri.eventbus;

import com.yswl.pri.picture.entry.ImageBean;

import org.greenrobot.eventbus.EventBus;

import java.util.List;

public class PictureDialogEvent {
    List<ImageBean> images;
    int position;

    public List<ImageBean> getImages() {
        return images;
    }

    public int getPosition() {
        return position;
    }

    public PictureDialogEvent(List<ImageBean> images, int position) {
        this.images = images;
        this.position = position;
    }

    public static void postEvent(List<ImageBean> images, int position){
        EventBus.getDefault().postSticky(new PictureDialogEvent(images,position));
    }
}
